﻿using System;
using System.ComponentModel;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using LeadThing.AbpZeroTemplate.BasicPersons;

namespace LeadThing.AbpZeroTemplate.BasicPersons.Dtos
{
    /// <summary>
    /// 莒县人口基本信息列表Dto
    /// </summary>
    [AutoMapFrom(typeof(BasicPerson))]
    public class BasicPersonListDto : EntityDto<long>
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [DisplayName("姓名")]
        public string Name { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [DisplayName("性别")]
        public bool Sex { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [DisplayName("身份证号")]
        public string IDCard { get; set; }
        /// <summary>
        /// 总人口数
        /// </summary>
        [DisplayName("总人口数")]
        public int TotalPopulation { get; set; }
        /// <summary>
        /// 家庭关系
        /// </summary>
        [DisplayName("家庭关系")]
        public string Relationship { get; set; }

        /// <summary>
        /// 从事行业
        /// </summary>
        [DisplayName("从事行业")]
        public string Industry { get; set; }

        /// <summary>
        /// 承包田亩数
        /// </summary>
        [DisplayName("承包田亩数")]
        public string ContractField { get; set; }

        /// <summary>
        /// 责任田亩数
        /// </summary>
        [DisplayName("责任田亩数")]
        public string ResponsibilityField { get; set; }

        /// <summary>
        /// 门牌号
        /// </summary>
        [DisplayName("门牌号")]
        public string HouseNumber { get; set; }

        /// <summary>
        /// 楼房
        /// </summary>
        [DisplayName("楼房")]
        public string Building { get; set; }

        /// <summary>
        /// 平房
        /// </summary>
        [DisplayName("平房")]
        public string Bungalow { get; set; }

        /// <summary>
        /// 政治面貌
        /// </summary>
        [DisplayName("政治面貌")]
        public string Politics { get; set; }
        /// <summary>
        /// 是否是烈士军属
        /// </summary>
        [DisplayName("是否是烈士军属")]
        public bool IsMartyr { get; set; }
        /// <summary>
        /// 是否享受低保
        /// </summary>
        [DisplayName("是否享受低保")]
        public bool Isallowance { get; set; }
        /// <summary>
        /// 是否是孤独
        /// </summary>
        [DisplayName("是否是孤独")]
        public bool IsLonely { get; set; }
        /// <summary>
        /// 是否是空巢老人
        /// </summary>
        [DisplayName("是否是空巢老人")]
        public bool Iselderly { get; set; }
        /// <summary>
        /// 是否是五保户
        /// </summary>
        [DisplayName("是否是五保户")]
        public bool IsFiveGuarantees { get; set; }
        /// <summary>
        /// 镇
        /// </summary>
        [DisplayName("镇")]
        public int TownID { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        [DisplayName("区")]
        public int AreaID { get; set; }
        /// <summary>
        /// 村庄
        /// </summary>
        [DisplayName("村庄")]
        public int VillageID { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 父项ID
        /// 0为户主，其它则非户主
        /// </summary>
        [DisplayName("是否户主")]
        public int ParentID { get; set; }

        #region 扩展字段

        /// <summary>
        /// 镇名称
        /// </summary>
        [DisplayName("镇")]
        public string TownTitle { get; set; }

        /// <summary>
        /// 区名称
        /// </summary>
        [DisplayName("区")]
        public string AreaTitle { get; set; }

        /// <summary>
        /// 村名称
        /// </summary>
        [DisplayName("村庄")]
        public string VillageTitle { get; set; }

        /// <summary>
        /// 是否显示添加成员菜单
        /// </summary>
        public bool IsShow { get; set; }

        #endregion
    }
}
